<%@ include file="/WEB-INF/jsp/includes.jsp" %>

<form method="POST" >
<b><spring:message code="select_send"/>:</b>
<p/>
<table>
<tr>
    <td><b><spring:message code="type"/></b></td>
    <td><input type="radio" name="type" value="AND" checked="checked" /><spring:message code="and"/></td>
    <td><input type="radio" name="type" value="OR" /><spring:message code="or"/></td>
</tr>
<tr>
    <td><b><spring:message code="group"/></b></td>
    <td><b><spring:message code="entry"/></b></td>
    <td><b><spring:message code="exclude"/></b></td>
</tr>
<c:forEach items="${groups}" var="group" varStatus="g">
    <tr>
        <td><c:out value="${group.name}" />:</td>
        <td>
        <select name="entry" multiple="multiple" size="<c:out value="${group.size}" />">
            <option value="-<c:out value="${group.id}" />"><spring:message code="none"/></option>
        <c:forEach items="${group.entries}" var="entry" varStatus="e">
            <option value="<c:out value="${entry.id}" />"><c:out value="${entry.name}" /></option>
        </c:forEach>
        </select>
        </td>
        <td><input type="checkbox" name="exclude" value="<c:out value="${group.id}" />" /></td>
    </tr>
</c:forEach>
</table>
<p/>
<table>
<tr>
    <td><b><spring:message code="query"/>:</b></td>
    <td><input type="text" name="query" size="100"/></td>
</tr>
</table>
<p/>
<input type="submit" value="<spring:message code="submit"/>"/>
</form>